package com.itheima.stock.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import lombok.Data;

/**
 * 个股详情信息表
 * @TableName stock_rt_info
 */
@TableName(value ="stock_rt_info")
@Data
public class StockRtInfo implements Serializable {
    /**
     * 主键字段（无业务意义）
     */
    @TableId(value = "id")
    private String id;

    /**
     * 股票代码
     */
    @TableField(value = "stock_code")
    private String stockCode;

    /**
     * 当前时间
     */
    @TableField(value = "cur_time")
    private LocalDateTime curTime;

    /**
     * 股票名称
     */
    @TableField(value = "stock_name")
    private String stockName;

    /**
     * 开盘价
     */
    @TableField(value = "open_price")
    private BigDecimal openPrice;

    /**
     * 前收盘价| 昨日收盘价
     */
    @TableField(value = "pre_close_price")
    private BigDecimal preClosePrice;

    /**
     * 当前价格
     */
    @TableField(value = "cur_price")
    private BigDecimal curPrice;

    /**
     * 今日最高价
     */
    @TableField(value = "max_price")
    private BigDecimal maxPrice;

    /**
     * 今日最低价
     */
    @TableField(value = "min_price")
    private BigDecimal minPrice;

    /**
     * 成交量
     */
    @TableField(value = "trade_amount")
    private Long tradeAmount;

    /**
     * 成交总金额(单位元)
     */
    @TableField(value = "trade_volume")
    private BigDecimal tradeVolume;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}